//
//  ConsultDetailViewController.m
//  renmingongshe
//
//  Created by macbook on 2017/11/1.
//  Copyright © 2017年 xiaodian. All rights reserved.
//

#import "ConsultDetailViewController.h"

@interface ConsultDetailViewController ()
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *reason;
@property (weak, nonatomic) IBOutlet UILabel *remark;
@property (weak, nonatomic) IBOutlet UILabel *money;
@property (weak, nonatomic) IBOutlet UILabel *myTime;
@property (weak, nonatomic) IBOutlet UILabel *nowTime;

@end

@implementation ConsultDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.titleLabel.text = @"协商详情";
    [self showInfo];
}
- (void)showInfo
{
    _money.text = [NSString stringWithFormat:@"%@元", _data[@"backMoney"]];
    _reason.text = _data[@"datas"][@"dataName"];
    _time.text = _data[@"createTime"];
    _remark.text = [TXUtilsString IsNull:_data[@"refundRemark"]]?@"暂未处理":_data[@"refundRemark"];
    _myTime.text = _data[@"createTime"];
    
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
    NSString *str = [formatter stringFromDate:[NSDate date]];
    _nowTime.text = str;
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
